package cn.tcmp.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("bbs_detail")
public class Detail {

    /*FieldTypeComment
    idint(11)编号
    sortIdint(11)分类编号
    titlevarchar(50)标题
    detailvarchar(50)详细内容
    authorvarchar(50)作者
    createDatedatetime发布时间
    replyCountint(11)回复次数*/

    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    private Integer sortId;
    private String title;
    private String detail;
    private String author;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date createDate;
    private Integer replyCount;


}
